var assert = require('assert');
var should = require('should');
var util = require('util');
var zlib = require('zlib');
var _ = require('lodash');
var buildService = require('../../app/services/buildService');
var config = require('../config');
var PlayerManager = require('../../app/libs/playerManager');

suite('测试buildService', function () {
    var player_manager = new PlayerManager(config.role_id);
    setup(function (done) {
        player_manager.getAllModel(function (err, model) {
            done();
        });
    });
    suite('clearRuin', function () {
        test('清理废墟', function () {
            buildService.clearRuin(player_manager);
        });
    });

    suite('upgradeBuild', function () {
        test('升级建筑', function () {
            buildService.upgradeBuild(player_manager, 218, 10);
        });
    });
});
